package com.project.service;

import com.alibaba.fastjson.JSONObject;
import com.project.entity.Area;

public interface AreaService {

    /**
     * author: WheelChen
     * date: 2017/9/20
     * function: 添加单条
     *
     * @param area
     * @return
     */
    int addOne(Area area);

    /**
     * author: WheelChen
     * date: 2017/9/20
     * function: 删除单条
     *
     * @param id
     * @return
     */
    int removeOneById(Integer id);

    /**
     * author: WheelChen
     * date: 2017/9/20
     * function: 修改单条记录
     *
     * @param area
     * @return
     */
    int modifyOneById(Area area);

    /**
     * author: WheelChen
     * date: 2017/9/20
     * function: 查找单条
     *
     * @param id
     * @return
     */
    Area findOneById(Integer id);

    /**
     * author: WheelChen
     * date: 2017/9/20
     * function: 通过id查找省/市/区
     *
     * @param id
     * @return
     */
    JSONObject findOneDetailById(Integer id);
}
